﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TCEasyPrintRev.Models;

namespace TCEasyPrintRev.Controllers
{ 
    public class ProdukController
    {
       
      

        public static List<string> getList()
        {

            using (var session = CRUD<Produk>.load().OpenSession())
            {
                return session.QueryOver<Produk>().List().Select(x => x.ID + " | " + x.Nama.ToString() + " | " + x.Harga.ToString() + " | " + x.fixedSize).ToList();
            }
        }
    }
}